<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<title>Wygodny obiekt dla Ajax</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
	<script type="text/javascript" src="http://yarpobject.googlecode.com/svn/trunk/ajax/yAjax/yajax.js"></script>
	<script type="text/javascript">
		window.onload = function() {
			var oAjax = yAjax();
			oAjax.url('test.php');
			//oAjax.method('POST'); domylsnie post
			//oAjax.async(true); domylsnie true
			//oAjax.type('text'); domylsnie text
			oAjax.data.add('a', 'wartość 1');
			oAjax.data.add('b', 3);
			//oAjax.before(function() { przed zadaniem });
			oAjax.success(function(response) { alert(response) });
			//oAjax.error(function() { obsluga bledu });
			//oAjax.complete(function() { po odebraniu danych z serwera });
			oAjax.send();
		}
	</script>
</head>

<body></body></html>
